// 引入axios实例
import axios from "../util/axios.js"

// 用户登录
export const login = (loginData) => {
	return axios.post('/user/login', loginData)
}

// 微信登录
export const wxLogin = (code) => {
	return axios.post('/qmUser/wxLogin', {
		code: code
	})
}

// 获取用户信息
export const getUserInfo = () => {
	return axios.get('/api/user/info')
}

// 用户登出
export const logout = () => {
	return axios.post('/api/user/logout')
}

// 获取验证码
export const getCaptcha = () => {
	return axios.get('/api/user/captcha')
}
